<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <div
      id="my-tab"
      data='[
    {
        "tab":"选项1",
        "page":"页面1"
    },
    {
        "tab":"选项2",
        "page":"页面2"
    },   
     {
        "tab":"选项3",
        "page":"页面3"
    }
    ]'></div>
    <script src="./js/myTab.js"></script>
    <script>
      new MyTab("#my-tab");
    </script>
  </body>
</html>
